
let index = 0;
let topDiv = document.querySelectorAll(".top1-con")
let titBtns = document.querySelectorAll(".p-nav");
titBtns.forEach(function(titbtn, i){
    titbtn.onclick = function(){
        console.log("titbtn");
        titBtns[index].style.borderBottom = "none";
        titbtn.style.borderBottom = "solid 4px #000";

        topDiv[index].style.display = "none"
        topDiv[i].style.display = "flex"
        
        index = i;
    }

})

